@echo off

echo calculate before
call :calculate 10 20
echo calculate after
goto :eof

:calculate
set /a result=%1 + %2
echo The result is %result%
exit /b
